/**
 * 状态管理
 */
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
  
  state:{
    themecolor:'20a0ff',
    skin:'',
    preview:false
  },
  mutations:{
    setSkin(state,skin){
      this.state.skin = skin
    },
    setThemeColor(state,curcolor){
      this.state.themecolor=curcolor;
    },
    showPreview(state,value){
      this.state.preview=value
    }
  }
  
});

export default store;